﻿using MSWeb.Implementation;
using MSWEB.Implementation;
using System.Collections.Generic;
using System.Web.Mvc;

namespace MSWeb.Controllers
{
    public class RaportController : Controller
    {
        private DataRepository dataRepo;

        public RaportController()
        {
            dataRepo = new DataRepository();
        }

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult ListaDluznikow(int? page)
        {
            IEnumerable<ListaDluznikowViewModel> result = dataRepo.ReturnListOfDeptorNewVersion(page);
            return View(result);
        }

        public ActionResult ListaWyplatNauczyciele(int? page)
        {
            IEnumerable<ListaDluznikowViewModel> result = dataRepo.ReturnListOfReceivables(page);
            return View(result);
        }

    }
}